package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * TPeisPatientExamDepartId entity. @author MyEclipse Persistence Tools
 */

public class TPeisPatientExamDepartId implements java.io.Serializable {

	// Fields

	private Integer idRow;
	private Integer idPatientExamDepart;
	private Integer idPatient;
	private String departNameR;
	private String summaryNaming;
	private String departType;
	private String departSummary;
	private String typistNameR;
	private String departDoctorNameR;
	private String consultDoctorNameR;
	private Timestamp lastTypistTime;
	private Timestamp examApproveTime;
	private Integer departDispOrder;

	// Constructors

	/** default constructor */
	public TPeisPatientExamDepartId() {
	}

	/** minimal constructor */
	public TPeisPatientExamDepartId(Integer idRow, Integer idPatientExamDepart,
			Integer departDispOrder) {
		this.idRow = idRow;
		this.idPatientExamDepart = idPatientExamDepart;
		this.departDispOrder = departDispOrder;
	}

	/** full constructor */
	public TPeisPatientExamDepartId(Integer idRow, Integer idPatientExamDepart,
			Integer idPatient, String departNameR, String summaryNaming,
			String departType, String departSummary, String typistNameR,
			String departDoctorNameR, String consultDoctorNameR,
			Timestamp lastTypistTime, Timestamp examApproveTime,
			Integer departDispOrder) {
		this.idRow = idRow;
		this.idPatientExamDepart = idPatientExamDepart;
		this.idPatient = idPatient;
		this.departNameR = departNameR;
		this.summaryNaming = summaryNaming;
		this.departType = departType;
		this.departSummary = departSummary;
		this.typistNameR = typistNameR;
		this.departDoctorNameR = departDoctorNameR;
		this.consultDoctorNameR = consultDoctorNameR;
		this.lastTypistTime = lastTypistTime;
		this.examApproveTime = examApproveTime;
		this.departDispOrder = departDispOrder;
	}

	// Property accessors

	public Integer getIdRow() {
		return this.idRow;
	}

	public void setIdRow(Integer idRow) {
		this.idRow = idRow;
	}

	public Integer getIdPatientExamDepart() {
		return this.idPatientExamDepart;
	}

	public void setIdPatientExamDepart(Integer idPatientExamDepart) {
		this.idPatientExamDepart = idPatientExamDepart;
	}

	public Integer getIdPatient() {
		return this.idPatient;
	}

	public void setIdPatient(Integer idPatient) {
		this.idPatient = idPatient;
	}

	public String getDepartNameR() {
		return this.departNameR;
	}

	public void setDepartNameR(String departNameR) {
		this.departNameR = departNameR;
	}

	public String getSummaryNaming() {
		return this.summaryNaming;
	}

	public void setSummaryNaming(String summaryNaming) {
		this.summaryNaming = summaryNaming;
	}

	public String getDepartType() {
		return this.departType;
	}

	public void setDepartType(String departType) {
		this.departType = departType;
	}

	public String getDepartSummary() {
		return this.departSummary;
	}

	public void setDepartSummary(String departSummary) {
		this.departSummary = departSummary;
	}

	public String getTypistNameR() {
		return this.typistNameR;
	}

	public void setTypistNameR(String typistNameR) {
		this.typistNameR = typistNameR;
	}

	public String getDepartDoctorNameR() {
		return this.departDoctorNameR;
	}

	public void setDepartDoctorNameR(String departDoctorNameR) {
		this.departDoctorNameR = departDoctorNameR;
	}

	public String getConsultDoctorNameR() {
		return this.consultDoctorNameR;
	}

	public void setConsultDoctorNameR(String consultDoctorNameR) {
		this.consultDoctorNameR = consultDoctorNameR;
	}

	public Timestamp getLastTypistTime() {
		return this.lastTypistTime;
	}

	public void setLastTypistTime(Timestamp lastTypistTime) {
		this.lastTypistTime = lastTypistTime;
	}

	public Timestamp getExamApproveTime() {
		return this.examApproveTime;
	}

	public void setExamApproveTime(Timestamp examApproveTime) {
		this.examApproveTime = examApproveTime;
	}

	public Integer getDepartDispOrder() {
		return this.departDispOrder;
	}

	public void setDepartDispOrder(Integer departDispOrder) {
		this.departDispOrder = departDispOrder;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TPeisPatientExamDepartId))
			return false;
		TPeisPatientExamDepartId castOther = (TPeisPatientExamDepartId) other;

		return ((this.getIdRow() == castOther.getIdRow()) || (this.getIdRow() != null
				&& castOther.getIdRow() != null && this.getIdRow().equals(
				castOther.getIdRow())))
				&& ((this.getIdPatientExamDepart() == castOther
						.getIdPatientExamDepart()) || (this
						.getIdPatientExamDepart() != null
						&& castOther.getIdPatientExamDepart() != null && this
						.getIdPatientExamDepart().equals(
								castOther.getIdPatientExamDepart())))
				&& ((this.getIdPatient() == castOther.getIdPatient()) || (this
						.getIdPatient() != null
						&& castOther.getIdPatient() != null && this
						.getIdPatient().equals(castOther.getIdPatient())))
				&& ((this.getDepartNameR() == castOther.getDepartNameR()) || (this
						.getDepartNameR() != null
						&& castOther.getDepartNameR() != null && this
						.getDepartNameR().equals(castOther.getDepartNameR())))
				&& ((this.getSummaryNaming() == castOther.getSummaryNaming()) || (this
						.getSummaryNaming() != null
						&& castOther.getSummaryNaming() != null && this
						.getSummaryNaming()
						.equals(castOther.getSummaryNaming())))
				&& ((this.getDepartType() == castOther.getDepartType()) || (this
						.getDepartType() != null
						&& castOther.getDepartType() != null && this
						.getDepartType().equals(castOther.getDepartType())))
				&& ((this.getDepartSummary() == castOther.getDepartSummary()) || (this
						.getDepartSummary() != null
						&& castOther.getDepartSummary() != null && this
						.getDepartSummary()
						.equals(castOther.getDepartSummary())))
				&& ((this.getTypistNameR() == castOther.getTypistNameR()) || (this
						.getTypistNameR() != null
						&& castOther.getTypistNameR() != null && this
						.getTypistNameR().equals(castOther.getTypistNameR())))
				&& ((this.getDepartDoctorNameR() == castOther
						.getDepartDoctorNameR()) || (this
						.getDepartDoctorNameR() != null
						&& castOther.getDepartDoctorNameR() != null && this
						.getDepartDoctorNameR().equals(
								castOther.getDepartDoctorNameR())))
				&& ((this.getConsultDoctorNameR() == castOther
						.getConsultDoctorNameR()) || (this
						.getConsultDoctorNameR() != null
						&& castOther.getConsultDoctorNameR() != null && this
						.getConsultDoctorNameR().equals(
								castOther.getConsultDoctorNameR())))
				&& ((this.getLastTypistTime() == castOther.getLastTypistTime()) || (this
						.getLastTypistTime() != null
						&& castOther.getLastTypistTime() != null && this
						.getLastTypistTime().equals(
								castOther.getLastTypistTime())))
				&& ((this.getExamApproveTime() == castOther
						.getExamApproveTime()) || (this.getExamApproveTime() != null
						&& castOther.getExamApproveTime() != null && this
						.getExamApproveTime().equals(
								castOther.getExamApproveTime())))
				&& ((this.getDepartDispOrder() == castOther
						.getDepartDispOrder()) || (this.getDepartDispOrder() != null
						&& castOther.getDepartDispOrder() != null && this
						.getDepartDispOrder().equals(
								castOther.getDepartDispOrder())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getIdRow() == null ? 0 : this.getIdRow().hashCode());
		result = 37
				* result
				+ (getIdPatientExamDepart() == null ? 0 : this
						.getIdPatientExamDepart().hashCode());
		result = 37 * result
				+ (getIdPatient() == null ? 0 : this.getIdPatient().hashCode());
		result = 37
				* result
				+ (getDepartNameR() == null ? 0 : this.getDepartNameR()
						.hashCode());
		result = 37
				* result
				+ (getSummaryNaming() == null ? 0 : this.getSummaryNaming()
						.hashCode());
		result = 37
				* result
				+ (getDepartType() == null ? 0 : this.getDepartType()
						.hashCode());
		result = 37
				* result
				+ (getDepartSummary() == null ? 0 : this.getDepartSummary()
						.hashCode());
		result = 37
				* result
				+ (getTypistNameR() == null ? 0 : this.getTypistNameR()
						.hashCode());
		result = 37
				* result
				+ (getDepartDoctorNameR() == null ? 0 : this
						.getDepartDoctorNameR().hashCode());
		result = 37
				* result
				+ (getConsultDoctorNameR() == null ? 0 : this
						.getConsultDoctorNameR().hashCode());
		result = 37
				* result
				+ (getLastTypistTime() == null ? 0 : this.getLastTypistTime()
						.hashCode());
		result = 37
				* result
				+ (getExamApproveTime() == null ? 0 : this.getExamApproveTime()
						.hashCode());
		result = 37
				* result
				+ (getDepartDispOrder() == null ? 0 : this.getDepartDispOrder()
						.hashCode());
		return result;
	}

}